The visitor counting program is a simple program that is connected to a special UNIX socket on the host machine. Whenever your browser talks to this socket, the program starts running (this is handled by the inet daemon). The program reads a 7 digit number from a file, increments it and writes the result back to that file. During that operation the file is locked, so no other program can change the counter in any way. The incremented number is then converted to a bitmap, which is returned to the browser. A cache included in xmosaic stores the image for later use, during the same session, so xmosaic doesn't need to retrieve it again. If it would retrieve it, the counter would be incremented again, giving false readings of the visitor count. If the counter program would have returned the number in readable text, instead of an image, then xmosaic wouldn't store it in the cache and the number would increment every time you retrieved the ticket office document (the number is displayed only on that document). The visitor counting program is not intended to be a true counting program and it is doubtful that a really good counting program could be written. The source code of the program is freely available.
The other piece of software written for this exhibit is the mapper. This program is the power behind the EXPO terrain map. It decodes the mouse coordinates, and can return a file depending on the coordinates. The file must be present on the system the mapper runs on. Some of the features built into the mapper are:
The pbmplus programs, xpaint program and the xv program, used for the image processing are available in the public domain. The latest version of xv however is shareware:
If you are fetching any of the above programs and are using xmosaic, then you might want to switch to binary transfer (in the options menu of xmosaic).
I can be reached via email at hoesel@chem.rug.nl